// Copyright (C) 2010  Andrew H. Chan
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

#include "basic_functions.h"

using namespace std;

// overload the extraction operator for index_t so that they can be streamed to cout
std::ostream& operator<<(std::ostream& os, index_t const& index) {
    for(index_t::const_iterator iter = index.begin(); iter != index.end(); ++iter) {
        os << *iter << ' ';
    }
    return os;
}
